<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function fun(name){
            console.log("我叫"+name);
            console.log(this);
        }
        //1、call可以调用函数
        fun.call(window,"tom");  //我叫tom
        fun.call();

        //2、call可以修改this
        var obj={a:100,b:200};
        fun.call(obj,"rose");
    </script>
</body>
</html>